package com.metrohm.edu.validation.sample2;

import javax.validation.constraints.Min;

import com.metrohm.edu.validation.sample2.validator.ValidDosingRate;

@ValidDosingRate
public class DosingUnit {

    @Min(value = 2)
    private int cylinderVolume;

    @Min(value = 1)
    private int speed;

    public void setCylinderVolume(int value) {
        cylinderVolume = value;
    }

    public void setSpeed(int value) {
        speed = value;
    }

    public int getCylinderVolume() {
        return cylinderVolume;
    }

    public int getSpeed() {
        return speed;
    }
}
